﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZX.OA.Model;
using ZX.OA.DAL;

namespace ZX.OA.BLL
{
    public class TaskInfoBll
    {
        TaskInfoDal dal = new TaskInfoDal();

        /// <summary>
        /// 显示工作任务
        /// </summary>
        /// <returns></returns>
        public List<TaskInfo> GetTaskList()
        {
            return dal.GetTaskList();
        }
        /// <summary>
        /// 添加工作任务
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        public int TaskAdd(TaskInfo t)
        {
            return dal.TaskAdd(t);
        }
        /// <summary>
        /// 删除工作任务
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        public int Dele(int id)
        {
            return dal.Dele(id);
        }
        /// <summary>
        /// 工作任务的详情
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        public TaskInfo TaskSreach(int id)
        {
            return dal.TaskSreach(id);
        }
    }
}
